package com.xydpeng.tech.order.dal.das;

import com.xydpeng.tech.order.dal.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xydpeng.tech.order.enums.OrderStatusEnum;

/**
 * @author 20031003
 * @description 针对表【order】的数据库操作Service
 * @createDate 2024-12-11 15:30:24
 */
public interface OrderDas extends IService<Order> {

    OrderStatusEnum getOrderStatus(Long orderCode);

    boolean updateOrderStatusAtomic(Long orderCode, OrderStatusEnum fromStatus, OrderStatusEnum toStatus);


}
